# -*- Autoconf -*-
# Process this file with autoconf 
# to produce a configure script.

AC_INIT([Awa],[0.0.1],[mamadou77@gmail.com])
AC_CONFIG_SRCDIR([jncImportNamespace.h])
AC_CONFIG_HEADER([config.h])
AC_PROG_RANLIB
AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE([Awa], 0.0.1)

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# Checks for libraries.
AX_BOOST_BASE([1.33.1])
AX_BOOST_REGEX
CHECK_XERCESC
CHECK_NCURSES
CHECK_GTKMM
CHECK_QT

AM_CONDITIONAL(HAVE_NCURSES, test x$NCURSES_OBJ = "xncurses.o")
AM_CONDITIONAL(HAVE_GTKMM, test x$GTKMM_OBJ = "xgtk.o")
AM_CONDITIONAL(HAVE_QT, test x$QT_LIB = "xqt.o")

# Checks for header files.
AC_HEADER_STDC

# Checks for typedefs, structures, 
# and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_C_VOLATILE
# CONDITIONAL COMPILATION HERE !!!

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_REALLOC
AC_FUNC_STAT
AC_FUNC_STRCOLL
AC_FUNC_STRTOD
AC_CHECK_FUNCS([atexit clock_gettime ftime getcwd gethostbyaddr gethostbyname gettimeofday localeconv mblen memmove memset nl_langinfo pathconf realpath setlocale socket strcasecmp strchr strdup strerror strncasecmp strndup strrchr strstr strtol strtoul])

AC_CONFIG_FILES([Makefile XmlTree/Makefile])
AC_OUTPUT
